package com.king01.dao;

import com.king01.entity.Staff;
import com.king01.vo.HomeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface HomeDao {
    //获取登录者的id和店铺名称
    public HomeVo findStaffname(Integer Staffid);
    public HomeVo findBranchname(Integer Branchid);
    //店铺总数
    public HomeVo branchcount();
    //员工总数
    public HomeVo staffcount(Integer branchid);
    //商品总数
    public HomeVo goodcount(Integer branchid);
    //获取商品售价统计的数据
    public List<HomeVo> findGoods();
    //获取各部门人员统计
    public List<Map> findDept();
    //商品库存统计
    public List<HomeVo> Goods(Integer branchid);

    //基本信息
    public Staff jbxx(Integer staffid);

    //修改密码
    public List<Staff> updatemima(@Param("password") Integer password,@Param("staffid")Integer staffid);

    public Integer updataPassword(@Param("password") Integer password,@Param("staffid")Integer staffid);

//    修改上传图片
    public Integer updateImg(@Param("path") String path,@Param("sraffid") Integer staffid);

}
